import { reactive } from "vue";
import type { FormRules } from "element-plus";

/** 自定义表单规则校验 */
export const formRules = reactive(<FormRules>{
  user_id: [{ required: true, message: "采购用户为必填", trigger: "blur" }],
  prefix_no: [{ required: true, message: "编号前缀为必填项", trigger: "blur" }],
  limit_upper: [{ required: true, message: "每日接单上限为必填项", trigger: "blur" }],
  status: [{ required: true, message: "状态为必填项", trigger: "blur" }],
  commission: [{ required: true, message: "单笔提成为必填项", trigger: "blur" }],
  commission1: [{ required: true, message: "单笔提成为必填项", trigger: "blur" }],
});
